use hg changeset info for xen banner
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 1 Jul 2005 10:15:25 +0000 (10:15 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 1 Jul 2005 10:15:25 +0000 (10:15 +0000)
Signed-off-by: Chris Wright <chrisw@osdl.org>
xen/Makefile

index 4f6f17c4f77af3db6dc51bed9b2a1579b27ca5cb..a97db442170c0e672e5c8304fc78c6874f954d4a 100644 (file)
@@ -97,7 +97,7 @@ include/xen/compile.h: include/xen/compile.h.in include/xen/banner.h
            -e 's/@@version@@/$(XEN_VERSION)/g' \
            -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \
            -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \
-           -e 's!@@changeset@@!$(shell bk changes -nd':D: :T: :REV: :MD5KEY:' -r+ 2>/dev/null || echo information unavailable)!g' \
+           -e 's!@@changeset@@!$(shell (hg tip | awk '/changeset/{CS=$$2};{FS="date:[ ]+"}/date/{D=$$2}; END {print D, CS}') 2>/dev/null || echo information unavailable)!g' \
            < include/xen/compile.h.in > $@.new
        @cat include/xen/banner.h >> $@.new
        @mv -f $@.new $@